#define _CRT_SECURE_NO_WARNINGS 1
#define COUNT 100
#define Add 1
#define Del 2
#define Change 3
#define Search 4
#define Sort 5
#define Display 6
#define Exit 0
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<assert.h>


struct Person
{
	char name[20];
	int age;
	int sex;
	char telephone_number[12];
	char address[20];
};
typedef struct Person Pinfo;

typedef struct AddressList
{
	Pinfo date[COUNT]; // 存放100个人的信息
	int count;	// 存放实际人的个数
}AddressList;


extern void menu();
extern void InitaAddressList(AddressList * );
extern void Add_AddressList_info(AddressList* ps);
extern void Show_AddressList_info(const AddressList* ps);
extern void Del_AddressList_info(AddressList* ps);
extern void Change_Address_info(AddressList* ps);
extern void Search_AddressList_info(AddressList* ps);
extern void Sort_AddressList_info(AddressList* ps);